<div style="height: 20px;">

</div>
<nz-table
    #drillTable
    [nzAjaxData]="data"
    [nzLoading]="loading"
    [nzTotal]="total"
    [(nzPageIndex)]="Pi"
    (nzPageIndexChange)="refreshData()"
    [(nzPageSize)]="Ps"

>
    <thead nz-thead>
        <tr>
            <th nz-th>
                <span>项目名称</span>
            </th>
            <th nz-th>
                <span>演练日期</span>
            </th>
            <th nz-th>
                <span>演练时长(分)</span>
            </th>
            <th nz-th>
                <span>项目类型</span>
            </th>
            <th nz-th>
                <span>演练专业</span>
            </th>
            <th nz-th>
                <span>演练班级</span>
            </th>
            <th nz-th>
                <span>详情</span>
            </th>
        </tr>
    </thead>
    <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let item of drillTable.data">
            <td nz-td>
                {{item.p_name}}
            </td>
            <td nz-td>
                {{item.createtime}}
            </td>
            <td nz-td>
                {{item.totalTime < 0? '演练未结束,不能计算演练时间':item.totalTime}}
            </td>
            <td nz-td>
                {{item.p_type | parseJson: 'label'}}
            </td>
            <td nz-td>
                {{item.MajorInfo}}
            </td>
            <td nz-td>
                {{item.classInfo}}
            </td>
            <td nz-td>
                <a (click)="preview(item.p_id,false,true)">项目流程</a>
                <span nz-table-divider></span>
                <a [routerLink]="['../studentDrill', item.id]">学生详情</a>
            </td>
        </tr>
    </tbody>
</nz-table>
